﻿<telerik:RadWindow x:Name="radWindow"
                   x:Class="Rio.Framework.Pages.Workflow.CommentWindow"
                   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                   xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                   xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                   xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                   mc:Ignorable="d"
                   MinWidth="400"
                   MinHeight="167"
                   d:DesignHeight="167"
                   d:DesignWidth="400">

    <telerik:RadWindow.Resources>
        <Style x:Key="ProductBorder"
               TargetType="Border">
            <Setter Property="Width"
                    Value="120" />
            <Setter Property="Height"
                    Value="80" />
            <Setter Property="BorderThickness"
                    Value="1" />
            <Setter Property="CornerRadius"
                    Value="2" />
            <Setter Property="Margin"
                    Value="6" />
        </Style>
    </telerik:RadWindow.Resources>

    <Grid x:Name="LayoutRoot"
          Background="White">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="0.521*" />
            <ColumnDefinition Width="0.479*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="10" />
            <RowDefinition />
            <RowDefinition Height="32" />
        </Grid.RowDefinitions>

        <StackPanel Grid.Row="1"
                    Orientation="Vertical"
                    HorizontalAlignment="Stretch"
                    Grid.ColumnSpan="2">
            <TextBlock Name="LabelControl"
                       Margin="5,3,5,0"
                       TextDecorations="Underline"
                       FontWeight="Bold" />
            <TextBox Name="textboxInput"
                     Height="60"
                     AcceptsReturn="True"
                     Margin="10,5,10,0"
                     Text="{Binding Comment, ElementName=radWindow, Mode=TwoWay}" />
        </StackPanel>

        <StackPanel Grid.Row="2"
                    Orientation="Horizontal"
                    Margin="16,0,10,5"
                    Grid.Column="1"
                    d:LayoutOverrides="Width"
                    VerticalAlignment="Bottom">
            <telerik:RadButton x:Name="OkBtn"
                               MinWidth="70"
                               VerticalAlignment="Center"
                               Margin="10 0 0 0"
                               Click="OKButton_Click" />
            <telerik:RadButton x:Name="CancelBtn"
                               MinWidth="70"
                               VerticalAlignment="Center"
                               Margin="10 0 0 0"
                               Click="CancelBtn_Click" />
        </StackPanel>

    </Grid>
</telerik:RadWindow
>
